FROM node:18-alpine

WORKDIR /app

COPY ../../frontend/package.json ../../frontend/package-lock.json* ./

RUN npm install

COPY ../../frontend/ .

# 设置环境变量
GetEnv CI=true
GetEnv PORT=80
GetEnv BROWSER=none
GetEnv REACT_APP_PORT=80

EXPOSE 80

CMD ["npm", "start"] 